package com.dlwx.parttimetalent.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/11/27.
 */

public class IncomeBean implements MultiItemEntity ,Parcelable {
    private String title;
    private String time;
    private int itemType;
    public static final int TITLE = 1;
    public static final int CONTENT = 2;

    protected IncomeBean(Parcel in) {
        title = in.readString();
        time = in.readString();
        itemType = in.readInt();
    }

    public static final Creator<IncomeBean> CREATOR = new Creator<IncomeBean>() {
        @Override
        public IncomeBean createFromParcel(Parcel in) {
            return new IncomeBean(in);
        }

        @Override
        public IncomeBean[] newArray(int size) {
            return new IncomeBean[size];
        }
    };

    public void setItemType(int itemType) {
        this.itemType = itemType;
    }

    public IncomeBean() {
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public int getItemType() {
        return itemType;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {

        dest.writeString(title);
        dest.writeString(time);
        dest.writeInt(itemType);
    }


}
